﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QGraphicsPixmapItem>
#include <QLabel>
#include <QImage>
#include "QMyCrossItem.h"
#include "windows.h"


QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_openbutton_clicked();
    void transformview(QPointF translation,qreal rotation,qreal scaling);
    void updateItemPos(QPointF pos);
    void setcrossitempos(QPointF pos);
    void setcrossitemselect(QRect NewRect);

private:
    Ui::MainWindow *ui;
    QLabel statusLabel;
    QImage *img=nullptr;
    QGraphicsPixmapItem *MyPixmapItem=nullptr;
    QMyCrossItem *MyCrossItem=nullptr;
    QGraphicsScene *scene1=nullptr;
    QGraphicsItemGroup *ItemGroup=nullptr;
    QList<QGraphicsItem *> QMyCrossItemlist;
};
#endif // MAINWINDOW_H
